<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ajax</title>
    <script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script>
    <script type="text/javascript">
        function sendAjax(){
            $.ajax({
                url: 'hello',
                success: function (data, textStatus) {
                    debugger
                    $("#content").html(data)
                },
                complete: function (XMLHttpRequest, textStatus) {
                    debugger
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    debugger
                }
            })
        }

    </script>
</head>
<body>
    <button onclick="sendAjax()">sendAjax</button>

    <p id="content"></p>
</body>
</html>